package com.xinxing.learning.boot.h2.service.impl;

import com.xinxing.learning.boot.h2.entity.FtpSyncLog;
import com.xinxing.learning.boot.h2.mapper.FtpSyncLogMapper;
import com.xinxing.learning.boot.h2.service.FtpSyncLogService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FtpSyncLogServiceImpl implements FtpSyncLogService {
    private final FtpSyncLogMapper ftpSyncLogMapper;

    public FtpSyncLogServiceImpl(FtpSyncLogMapper ftpSyncLogMapper) {
        this.ftpSyncLogMapper = ftpSyncLogMapper;
    }

    @Override
    public FtpSyncLog selectById(String id) {
        return ftpSyncLogMapper.selectById(id);
    }

    @Override
    public int insert(FtpSyncLog ftpSyncLog) {
        return ftpSyncLogMapper.insert(ftpSyncLog);
    }

    @Override
    public List<FtpSyncLog> selectList() {
        return ftpSyncLogMapper.selectList(null);
    }
}
